package com.lagou.Test;

import com.lagou.Server.ServerDao;
import com.lagou.Server.ServerInitClose;
import com.lagou.Server.ServerView;

import java.io.IOException;

public class ServerTest {
    public static void main(String[] args) {
        ServerInitClose sic= null;
        try {
            sic = new ServerInitClose();
            sic.ServerInit();
            ServerDao sd=new ServerDao();
            ServerView sv=new ServerView(sic,sd);
            sv.serverReceive();
        } catch (IOException | ClassNotFoundException e) {
            e.printStackTrace();
        } finally {
            try {
                sic.ServerClose();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
